import http from "@/axios/http";
// import http from "@/axios/workspace";

export default {
  // 上传文件
  Hp_UploadFile(data) {
    return http({
      method: "post",
      url: "/upload/uploadFile",
      data,
    });
  },
  Hp_Add(data) {
    return http({
      method: "PUT",
      url: "/supplier/save",
      data,
    });
  },

  Hp_Update(data) {
    return http({
      method: "post",
      url: "/supplier/update",
      data,
    });
  },

  Hp_Del(id) {
    return http({
      method: "DELETE",
      url: "/supplier/delete/" + id,
    });
  },
  Hp_GetIdSee(id) {
    return http({
      method: "get",
      url: "/supplier/" + id,
    });
  },
  Hp_Search(params) {
    return http({
      method: "get",
      url: "/supplier/search",
      params,
    });
  },
};
